package com.dougmccune.charts.gantt.skins
{
	import mx.skins.Border;

/**
 *  The skin for the highlighted state of the track of a Slider.
 */
public class GanttSliderIncompleteSkin2 extends Border
{
	
	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
	//--------------------------------------------------------------------------

    /**
	 *  Constructor.
	 */
	public function GanttSliderIncompleteSkin2()
	{
		super();
	}

	//--------------------------------------------------------------------------
	//
	//  Overridden properties
	//
	//--------------------------------------------------------------------------

	//----------------------------------
	//  measuredWidth
	//----------------------------------

	/**
	 *  @private
	 */
/*	
	override public function get measuredWidth():Number
	{
		return 1;
	}
*/
	//----------------------------------
	//  measuredHeight
	//----------------------------------

	/**
	 *  @private
	 */
	/*
	override public function get measuredHeight():Number
	{
		return 20;
	}*/
	
	//--------------------------------------------------------------------------
	//
	//  Overridden methods
	//
	//--------------------------------------------------------------------------
	
    /**
	 *  @private
	 */
	override protected function updateDisplayList(w:Number, h:Number):void
	{
		super.updateDisplayList(w, h);

		var themeColor:int = getStyle("incompleteColor");
		
		graphics.clear();
		
		graphics.lineStyle(1, themeColor, 1);
		graphics.moveTo(0,0);
		graphics.lineTo(0, h);
		
		graphics.moveTo(0, h/2);
		graphics.lineTo(w, h/2);
		
		graphics.lineStyle(2, themeColor, 1);
		
		graphics.moveTo(w - 5, 0);
		graphics.lineTo(w, 0);
		graphics.lineTo(w, h);
		graphics.lineTo(w - 5, h);
		
		
	}
}
}